package com.lsyonlygoddes.controller;

import com.lsyonlygoddes.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author:lsyonlygoddes
 * @time:2024/1/29 11:39
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping("/hello")
    public String hello(HttpSession session){
        helloService.hello();
        return "hello";
    }
}
